projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c52604
)
ostree-repo: replace more gs_unref_(variant|bytes) with g_autoptr
author
Giuseppe Scrivano
<gscrivan@redhat.com>
Thu, 14 May 2015 07:56:00 +0000
(09:56 +0200)
committer
Giuseppe Scrivano
<gscrivan@redhat.com>
Thu, 14 May 2015 08:04:16 +0000
(10:04 +0200)
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
src/libostree/ostree-repo.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-repo.c
b/src/libostree/ostree-repo.c
index 148dfadd7b0ae55f18f85fd7b3f38889af07082f..2f211494853bc0626dfc50d73104142ba186bcee 100644
(file)
--- a/
src/libostree/ostree-repo.c
+++ b/
src/libostree/ostree-repo.c
@@
-3806,9
+3806,9
@@
_ostree_repo_verify_commit_internal (OstreeRepo *self,
GError **error)
{
OstreeGpgVerifyResult *result = NULL;
- g
s_unref_variant GVariant *
commit_variant = NULL;
- g
s_unref_variant GVariant *
metadata = NULL;
- g
s_unref_bytes GBytes *
signed_data = NULL;
+ g
_autoptr(GVariant)
commit_variant = NULL;
+ g
_autoptr(GVariant)
metadata = NULL;
+ g
_autoptr(GBytes)
signed_data = NULL;
/* Load the commit */
if (!ostree_repo_load_variant (self, OSTREE_OBJECT_TYPE_COMMIT,